package com.itheima.reggie.service;


import com.itheima.reggie.common.R;
import com.itheima.reggie.entity.Dish;
import com.itheima.reggie.entity.DishDto;
import com.itheima.reggie.entity.Page;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public interface DishService {
    void saveWithFlavor(DishDto dishDto);

    Page<DishDto> page(Integer page, Integer pageSize, String name);

    DishDto findById(Long id);

    void updateWithFlavor(DishDto dishDto);

    List<DishDto> findByCategoryId(Long categoryId,Integer status);

    void deletByIds(List<Long> ids);

    void setStatus(Integer status, List<Long> ids);
}
